package com.seari.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class DateUtil {
	
	/**
	 * 
	 * @param cal
	 * @returnss
	 */
	public static String formatToString(Calendar cal,String format) {
		SimpleDateFormat sdf = new SimpleDateFormat(format);
		String str = sdf.format(cal.getTime());
		return str;
	}
	
	public static Date getDate() {
		Calendar cal = Calendar.getInstance();
		return cal.getTime();
	}

}
